import { playMode } from 'common/js/config'
import { loadSearch, loadPlayHistory, loadFavoriteList } from 'common/js/cache'
const state = {
  singer: {},
  playing: false,
  fullScreen: false,
  playlist: [],
  sequenceList: [],
  mode: playMode.sequence,
  currentIndex: -1,
  disc: {},
  toplist: {},
  searchScroll: false, // 搜索页面，用户已经获取到查询结果，开始滚动查询得到的内容
  searchHistory: loadSearch([]),
  playHistory: loadPlayHistory([]),
  favoriteList: loadFavoriteList([])
}

export default state
